Skip to content

feat: add version flags and automate tagged releases - #25

Merged
david-littlefarmer merged 1 commit into
masterfrom
feat/version-flags
Oct 21, 2026
Merged

david-littlefarmer merged 1 commit into
masterfrom
feat/version-flags

Conversation

@david-littlefarmer

Copy link
Copy Markdown
Member

Add ridlfmt -version and ridlfmt -v to print the installed version and exit before reading input. Prefer a version injected at build time, then Go's embedded module version, with devel as the fallback. Align CLI help and update the README usage example.

Match webrpc's tag-based release approach: make build and make install stamp the version from git describe --tags --dirty, with an explicit VERSION override and a fallback for checkouts without tags. Pushing a v* tag runs tests and GoReleaser to publish macOS, Linux, and Windows binaries for amd64 and arm64, checksums, and generated release notes.

Validation:

  • go test ./... and git diff --check pass.
  • Verified version aliases, module versions, linker overrides, and fallback behavior.
  • Verified Makefile build/install stamping and the no-tags fallback.
  • GoReleaser configuration check and all six local snapshot builds pass; nothing was published.

Closes #13

@david-littlefarmer
david-littlefarmer merged commit e611eb9 into master Oct 21, 2026
1 check passed
@david-littlefarmer
david-littlefarmer deleted the feat/version-flags branch October 21, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add -version CLI flag

1 participant